/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-05-11 15:48:13
 * @LastEditors: voanit
 * @LastEditTime: 2022-05-12 09:53:28
 */
export default function filter(info = { id: 1, age: 18 }, action) {
  console.log(action, 777)
  switch (action.type) {
    case 'add':
      return { ...info, name: 'jack' }
    default:
      return info
  }
}
